package com.pda.yuanjing.pages.returnscanf;

import com.pda.yuanjing.thread.CodeBeans;
import com.public_module.basemvp.present.BasePresenter;

public class ReturnScanfPresent extends BasePresenter<ReturnScanfModel, ReturnScanfView> implements ReturnScanfModel.CallBack {


    public void addCode(String billID, CodeBeans codeBeans) {
       model.addCode(billID,codeBeans,this);
    }

    public void deleteCode(String billID, CodeBeans codeBeans) {
        model.deleteCode(billID,codeBeans,this);
    }


    @Override
    public void onupdateView(String str, int flag) {
        if(view!=null)
        {
            view.updateView(str,flag);
        }
    }

    @Override
    public void onshowres(String str) {
        if(view!=null)
        {
            view.showres(str);
        }
    }
}


